package com.max.eshop.comporators;

import java.util.Comparator;

import com.max.eshop.core.Book;

public class SortedBooksByPrice implements Comparator<Book> {

	@Override
	public int compare(Book arg0, Book arg1) {
		return arg0.getPrice().compareTo(arg1.getPrice());
	}
}